#ifndef MYLIB_DRIVER_I2C_H
#define MYLIB_DRIVER_I2C_H

#include <mylib/mylib_config.h>

enum
{
    I2C_1,
    I2C_2,
    I2C_3,
    I2C_4,
    I2C_5
};

void i2c_read(uint32_t i2c, uint16_t dev_addr, uint16_t mem_addr, uint16_t men_addr_len, void* buf,
              uint32_t len);
void i2c_write(uint32_t i2c, uint16_t dev_addr, uint16_t mem_addr, uint16_t men_addr_len,
               void* data, uint32_t len);

#endif   // !MYLIB_DRIVER_I2C_H
